#ifndef USER_H
#define USER_H
#include "tcpsocket.h"
#include<string>
using namespace std;
class User
{
public:
    User(string name,string passwd,int rank,Tcpsocket*s);
    //Tcpsocket*getTcpsocket();
    string getuserName();
    Tcpsocket*getSocket();
    int getRank();
    void setRank(int rank);
private:
    string userName;
    string passwd;
    int rank;
    Tcpsocket*s;//通信套接字

};

#endif // USER_H
